package org.lc.stk.web.dto.department;

import io.swagger.v3.oas.annotations.media.Schema;

@Schema(description = "部门查询条件")
public class DepartmentQuery {

    @Schema(description = "部门名称")
    private String name;

    @Schema(description = "部门编码")
    private String code;

    @Schema(description = "部门类型ID")
    private Integer typeId;

    @Schema(description = "上级部门ID")
    private Integer parentId;

    @Schema(description = "排序字段", allowableValues = {"name", "code", "orderNum"})
    private String sortBy = "orderNum";

    @Schema(description = "排序方向", allowableValues = {"asc", "desc"})
    private String sortDirection = "asc";

    // Getters and Setters
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public String getSortBy() {
        return sortBy;
    }

    public void setSortBy(String sortBy) {
        this.sortBy = sortBy;
    }

    public String getSortDirection() {
        return sortDirection;
    }

    public void setSortDirection(String sortDirection) {
        this.sortDirection = sortDirection;
    }
}